package org.learn.a1_100_leet_code.a_2;

public class ListNode {
    public int value;
    public ListNode nextNode;

    public ListNode() {
    }

    public ListNode(int value) {
        this.value = value;
    }

    public ListNode(int value, ListNode nextNode) {
        this.value = value;
        this.nextNode = nextNode;
    }

    @Override
    public String toString() {
        return "Node{" +
                "current value=" + value +
                ", next->" + nextNode +
                '}';
    }
}
